package com.tianyuan.service.impl;

import com.tianyuan.mapper.PersonsMapper;
import com.tianyuan.domain.Persons;
import com.tianyuan.domain.PersonsExample;
import com.tianyuan.service.api.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: cap
 * @description:
 * @author: Mr.Wang
 * @create: 2020-06-29 10:24
 **/
@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonsMapper personsMapper;


    @Override
    public List<Persons> findAll() {
        PersonsExample example = new PersonsExample();
        List<Persons> list = personsMapper.selectByExample(example);
        //List<Persons> list = personsMapper.findAll();
        return list;
    }
}
